# -*- coding: utf-8 -*-
"""
Created on 2023-03-23 16:06
---------
@summary: 爬虫入口
---------
@author: pepsi
"""
import os

from starlette.staticfiles import StaticFiles

from core.server import InitializeApp
import uvicorn

app = InitializeApp()

static_dir = os.path.dirname(os.path.abspath(__file__)).replace("\\", '/')
app.mount("/static", StaticFiles(directory=f"{static_dir}/templates/static"), name="static")

if __name__ == "__main__":
    uvicorn.run(
        app='debug:app',
        host="127.0.0.1",
        port=43961,
        reload=True,
    )
